package juc;

public class test1 {
    public static void main(String[] args) {
        Thread t=new Thread(()->{
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println(Thread.currentThread().getName()+"=="+Thread.currentThread().isDaemon());
            while (true){

            }
        },"aa");
        t.setDaemon(true);
        t.start();
        System.out.println(Thread.currentThread().getName()+"over");

    }
}
//mainover

